package exercise;

import java.util.Scanner;

public class EX01_Q24 {

	public static void main(String[] args) {
		
		System.out.println("1~9까지 숫자중 하나를 입력해 주세요.");
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		
		for(int a = 1; a<=9; ++a){
			if(num<=9){System.out.println(num+"x"+a+"="+num*a);}
		}
		    if(num>9){System.out.println("잘못입력하셨습니다");}
		
	}

}
